From 985121813e2af706837e2e4d14019dec07762975 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 16 Mar 2016 10:20:17 +0100 Subject: [PATCH] scale: Fix value height calculation if (orientation) doesn't make a lot of sense but C doesn't complain and instead evaluates orientation to TRUE for GTK_ORIENTATION_VERTICAL (since that's 1), thus inverting the value sizes. --- gtk/gtkscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 9fe1bafcf2..ec5804d44f 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1212,7 +1212,7 @@ gtk_scale_measure_value (GtkCssGadget *gadget, g_object_unref (layout); } - if (orientation) + if (orientation == GTK_ORIENTATION_HORIZONTAL) *minimum = *natural = width; else *minimum = *natural = height; -- 2.30.2